package com.ct.gd.passport.view.policy;

import java.util.List;

import android.content.Context;
import android.view.View;

import com.ct.gd.passport.domain.PolicyCatalog;

public class PolicyCatalogSearchLoader extends PolicyCatalogLoader {
	
	private String	keyword;

	public PolicyCatalogSearchLoader(Context context, View view) {
		super(context, view);
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getKeyword() {
		return keyword;
	}

	@Override
	protected List<PolicyCatalog> loadData() throws Exception {
		List<PolicyCatalog> catalogs = PolicyCatalog.searchCatalog(keyword);
		return catalogs;
	}
}
